package cn.cagurzhan.domain.entity;

import java.util.Date;

import java.io.Serializable;

import cn.cagurzhan.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 家居状态日志
 *
 * @author makejava
 * @since 2024-03-14 16:57:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("iot_home")
public class HomeLog extends BaseEntity {
    @TableId
    private Long logId;

    //房间状态，0睡觉模式，1洗浴模式，2离家模式，3回家模式
    private Integer homeStatus;

    //大门状态，0关，1开
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer gateState;

    //车库门状态，0关，1开
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer carDoorState;

    //窗户角度，180度
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer windowState;

    //灯光亮度，
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer ledStrength;

    //火警开关，0关，1开
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer fireAlarm;

    //煤气泄漏报警
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer gasLeakAlarm;
}
